import 'package:flutter/material.dart';

///
/// ListView API :  https://api.flutter-io.cn/flutter/widgets/ListView-class.html
///
///
class ListViewDemo extends StatelessWidget {
  const ListViewDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'JSPang Flutter ListView Demo',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('ListView widget'),
        ),
        body: ListView(
          children: [
            const ListTile(
              leading: Icon(Icons.perm_camera_mic),
              title: Text('perm_camera_mic'),
            ),
            const ListTile(
              leading: Icon(Icons.add_call),
              title: Text('add_call'),
            ),
            const ListTile(
              leading: Icon(Icons.access_time),
              title: Text('access_time'),
            ),
            Image.network('https://files.jb51.net/image/8ahk_235.gif', fit: BoxFit.fitWidth,),
            Image.network('https://files.jb51.net/image/services.png', fit: BoxFit.fitWidth,),
            Image.network('https://files.jb51.net/image/crmeb235.gif', fit: BoxFit.fitWidth,),
            Image.network('https://files.jb51.net/image/jieidc_237.gif', fit: BoxFit.fitWidth,)
          ],
        )
      ),
    );
  }
}
